﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateContentTypeAssociation.aspx.cs" Inherits="UpdateContentTypeAssociation" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 

<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<script language="JavaScript">
    function _spBodyOnLoad()
    {
        try
        {
            window.focus();
        }
        catch(e)
        {
        }
    }
    function DoValidateAndSubmit()
    {
        return true;
    }
</script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <asp:Literal ID="Literal1" runat="server" Text="Customize Workflow" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <%
        string strPTS = "Alterar um Fluxo de Trabalho: " + m_workflowName;
        SPHttpUtility.HtmlEncode(strPTS, Response.Output);
    %>
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageImage" runat="server">
    <img src="/_layouts/images/blank.gif" width="1" height="1" alt="">
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <%
        string strPD = "Utilize esta p&aacute;gina para customizar o workflow " + m_workflowName + ".";
        Response.Write(strPD);
        //SPHttpUtility.HtmlEncode(strPD, Response.Output);
    %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table width="100%" cellpadding="5" border="0">
        <tr>
            <td style="width: 100%">
                <table width="100%" border="0" cellspacing="0" cellpadding="5" class="ms-authoringcontrols" style="background-color: transparent">
                    <tr style="vertical-align:top">
                        <td>
                            <b>Customiza&ccedil;&atilde;o do Workflow</b>
                            <br />
                         </td>
                    </tr>
                </table>
                 <hr />
                <table width="100%" border="0" cellspacing="0" cellpadding="5" class="ms-authoringcontrols" style="background-color: transparent">
                    <tr style="vertical-align:top">
                        <td>
                            Especifique a URL do web service de atualização do portal do Team System.
                        </td>
                        <td style="width: 350px" class="ms-authoringcontrols">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ms-authoringcontrols">
                                <tr>
                                    <td>URL do web service</td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;&nbsp; <asp:TextBox runat="server" id="txtURLTFSWS" Width="300px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                 <hr />
                <table width="100%" border="0" cellspacing="0" cellpadding="5" class="ms-authoringcontrols" style="background-color: transparent">
                    <tr style="vertical-align:top">
                        <td>
                            Especifique os endere&ccedil;o de email (separados por ";") de quem ser&aacute; alertado quando ocorrer um erro
                        </td>
                        <td style="width: 350px" class="ms-authoringcontrols">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ms-authoringcontrols">
                                <tr>
                                    <td>Endereço de email</td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;&nbsp; <asp:TextBox runat="server" id="txtEmail" Width="300px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            
            </td>
        </tr>
        <tr>
            <td style="width: 100%">
                <hr />
            </td>
        </tr>
        <tr>
            <td style="width: 100%" align="right">
                <asp:Button ID="btnSubmit" runat="server" Text="OK" onclick="btnSubmit_Click" CssClass="ms-ButtonHeightWidth" />
                &nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" onclick="btnCancel_Click" CssClass="ms-ButtonHeightWidth" />
            </td>
        </tr>
    </table>


    <SharePoint:FormDigest ID="FormDigest1" runat="server" />

    <input type="hidden" name="WorkflowDefinition" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["WorkflowDefinition"]),Response.Output); %>'>
    <input type="hidden" name="WorkflowName" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["WorkflowName"]),Response.Output); %>'>
    <input type="hidden" name="AddToStatusMenu" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["AddToStatusMenu"]),Response.Output); %>'>
    <input type="hidden" name="AllowManual" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["AllowManual"]),Response.Output); %>'>
    <input type="hidden" name="RoleSelect" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["RoleSelect"]),Response.Output); %>'>
    <input type="hidden" name="GuidAssoc" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["GuidAssoc"]),Response.Output); %>'>
    <input type="hidden" name="SetDefault" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["SetDefault"]),Response.Output); %>'>
    <input type="hidden" name="HistoryList" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["HistoryList"]),Response.Output); %>'>
    <input type="hidden" name="TaskList" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["TaskList"]),Response.Output); %>'>
    <input type="hidden" name="UpdateLists" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["UpdateLists"]),Response.Output); %>'>        
    <input type="hidden" name="AutoStartCreate" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["AutoStartCreate"]),Response.Output); %>'>
    <input type="hidden" name="AutoStartChange" value='<% SPHttpUtility.NoEncode(SPHttpUtility.HtmlEncode(Request.Form["AutoStartChange"]),Response.Output); %>'>

</asp:Content>